package com.huangpf.util.excelUtil;

import org.apache.log4j.Logger;

import java.util.List;

/**
 * Created by huangpf on 2016/9/16.
 */
public class Test {
    public static Logger log = Logger.getRootLogger();

    public static void main(String[] args) {
        // excel导入导出测试
        String filePath = "D:\\MyJob\\Project\\Maven\\com\\huangpf\\util\\src\\main\\java\\com\\huangpf\\util\\excelUtil\\excel_parse.xlsx";
        String xmlPath = "D:\\MyJob\\Project\\Maven\\com\\huangpf\\util\\src\\main\\java\\com\\huangpf\\util\\excelUtil\\excel_import.xml";
        ExcelParse excelParse = new ExcelParse(filePath, xmlPath);
        List successList = excelParse.getSuccessList();
        List errorList = excelParse.getErrorList();
        log.debug(successList);
        log.debug(errorList);

        //ExcelUtil.exportExcel(xmlPath, "export_excel.xlsx", list);
    }
}
